package com.panopset.gui;

import javax.swing.JTextArea;
import javax.swing.text.Document;

import com.panopset.java.Version;
import com.panopset.swing.FontManager;

/**
 * FontManager managed JTextArea.
 * @author Karl Dinwiddie
 */
public class TTextArea extends JTextArea {

    public TTextArea() {
        this(null, null, 0, 0);
    }

    public TTextArea(String text) {
        this(null, text, 0, 0);
    }

    public TTextArea(int rows, int columns) {
        this(null, null, rows, columns);
    }

    public TTextArea(String text, int rows, int columns) {
        this(null, text, rows, columns);
    }

    public TTextArea(Document doc) {
        this(doc, null, 0, 0);
    }

    public TTextArea(Document doc, String text, int rows, int columns) {
        super(doc,text,rows,columns);
        FontManager.register(this, FontManager.FontType.monospace);
    }

    private static final long serialVersionUID = Version.UNI_VERSION;
}
